import request from '@/utils/request'

// 查询发起发文列表
export function listOaLnitiatePost(query) {
  return request({
    url: '/lnitiatePost/oaLnitiatePost/list',
    method: 'get',
    params: query
  })
}

// 查询发起发文详细
export function getOaLnitiatePost(id) {
  return request({
    url: '/lnitiatePost/oaLnitiatePost/' + id,
    method: 'get'
  })
}

// 保存发起发文
export function saveOaLnitiatePost(data) {
  return request({
    url: '/lnitiatePost/oaLnitiatePost/save',
    method: 'post',
    data: data
  })
}

// 删除发起发文
export function delOaLnitiatePost(id) {
  return request({
    url: '/lnitiatePost/oaLnitiatePost/' + id,
    method: 'delete'
  })
}

// 导出发起发文
export function exportOaLnitiatePost(query) {
  return request({
    url: '/lnitiatePost/oaLnitiatePost/export',
    method: 'get',
    params: query
  })
}
